/*
 * @Author: taosong 2289713738@qq.com
 * @Date: 2023-12-23 15:49:13
 * @LastEditors: taosong 2289713738@qq.com
 * @LastEditTime: 2023-12-23 15:51:43
 * @FilePath: \ele-h5\src\api\search.ts
 * @Description:
 *
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
 */
import request from './base'
import type { ISearchResultList } from '../types'

export const fetchSearchData = (key = '') => {
  return request.get<ISearchResultList, ISearchResultList>('home_search', {
    params: { _label_like: key }
  })
}
